#!/usr/bin/expect -f

set timeout -1 

#login
spawn ssh hjwu@192.168.150.31
expect "*?assword:*"
send "11111\r"
expect "*]*"


send "cd /mnt/sda5/CASP9/sh/\r"
expect "*]*"
send "./Lab547.sh $argv\r"
#expect "*]*"
#send "\r"
expect "*]*"
send "exit\r"

expect eof
